package me.firstapp.spi.zerone;

import java.util.Map;

import me.firstapp.common.json.PageObject;
import me.firstapp.common.json.SingleObject;
import me.firstapp.common.module.zerone.JsonCqsscLotteryResult;
import me.firstapp.common.module.zerone.JsonCqsscPlan;

public interface CqsscService {

	PageObject<JsonCqsscLotteryResult> findCqsscLotteryResultPage(Integer pageNo, Integer pageSize,
			Map<String, Object> searchParams, String sortParam, String sortType);

	SingleObject<JsonCqsscLotteryResult> addCqsscLotteryResult(String issueNo, String prizeNo);

	SingleObject<JsonCqsscLotteryResult> updateCqsscLotteryResult(Long id, String issueNo, String prizeNo);

	SingleObject<Object> addPlans(String planIssueNo, int notWinNum);

	PageObject<JsonCqsscPlan> findCqsscPlanPage(Integer pageNo, Integer pageSize, Map<String, Object> searchParams,
			String sortParam, String sortType);

	SingleObject<JsonCqsscLotteryResult> findCqsscLotteryResultById(Long id);

}
